const Router = require('koa-router')

const { createLibrary,getLibrarys,detect,addface,getFacesetDetail,search } = require('../controller/face++.controller')
const { getImageInfo } = require('../middleware/tencent.middleware')
const router = new Router({ prefix:'/ks' })

router.post('/createlibrary', createLibrary)
router.post('/librarys', getLibrarys)
router.post('/detect',getImageInfo, detect)
router.post('/addface', addface)
router.post('/facesetdetail', getFacesetDetail)
router.post('/search',getImageInfo, search)




module.exports = router